package cn.com.huzo.service.purchase.impl;

import cn.com.huzo.model.entities.purchase.ReportMaterialQueryInPoEntity;
import cn.com.huzo.repository.purchase.ReportMaterialQueryInPoRepository;
import cn.com.huzo.service.purchase.ReportMaterialQueryInPoManager;
import huzofw.service.impl.GenericManagerImpl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 采购查料表信息管理服务对象。
 *
 * @author 吴旭
 */
@Service("ReportMaterialQueryInPoManager")
public class ReportMaterialQueryInPoManagerImpl extends GenericManagerImpl<ReportMaterialQueryInPoEntity, HashMap>
        implements ReportMaterialQueryInPoManager {

    @Resource(name = "ReportMaterialQueryInPoRepository")
    private ReportMaterialQueryInPoRepository _dao;

    /**
     * {@inheritDoc}
     *
     * @throws java.lang.Exception
     */
    @Override
    @Transactional
    public List<ReportMaterialQueryInPoEntity> fetchReportData(Map<String, Object> criterion) throws Exception {
        return _dao.fetchReportData(criterion);
    }
}
